<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title>帐号绑定_<?=$this->config->item('site_name');?></title>
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/login.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/tempo.min.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.autocomplete-min.js')?>"></script>
</head>
<body>
<? $this->load->view('header'); ?>

<div id="main" class="clearfix">
  <div class="bgrf clearfix">
    <div class="nsoine">
      <div class="thplat">
        <h2>帐号绑定</h2>
      </div>
      <div class="logbox">
        <h3>完善资料</h3>

          <div class="logone" id="01">
            <form action="<?php echo site_url('social/bind/'.$vendor);?>" method="post">
              <div class="itm clearfix">
                <label>昵称</label>
                <div class="iput">
                  <input id="nickname" name="nickname" value="<?php echo $screen_name;?>" class="retext" maxlength="20" type="text">
                </div>
                <span> </span>
              </div>
              <div class="iisi"><?php echo form_error('nickname'); ?></div>
              <div class="itm clearfix">
                <label>密码</label>
                <div class="iput">
                 <input id="pwd" name="password" value="" class="retext" maxlength="20" type="password" onkeydown="if(event.keyCode=='32'){return false;}">
                </div>
                <span></span>
              </div>
              <div class="iisi">密码长度为6-20位，不能含有空格</div>
              <div class="itm clearfix">
                <label>确认密码</label>
                <div class="iput">
                  <input id="dpassword" name="dpassword"  value="" class="retext" maxlength="20" type="password" onkeydown="if(event.keyCode=='32'){return false;}">
                </div>
                <span></span>
              </div>
              <div class="iisi">再输入一次密码</div>

              <div class="iloo">
                <span class="lxieyi mb30"> 
                  <label><input type="checkbox" checked="checked" class="czl" name="is_remember" id="is_remember"> 我已阅读并且同意</label> <a href="<?=site_url('siteinfo/?menu=protocol')?>" target="_blank" title="用户协议">爱厨房使用协议</a> 
                  <b id="agreement_tip" class="fwn ff0 pls"><?=$error_info?></b>
                </span>
                <button type="submit" class="btnrdz">确定</button>
                <span class="plm"><a href="javascript:void(0);" onclick="$('#01').fadeOut(800,function(){$('#02').fadeIn(800)});">已有账号</a></span>
              </div>
            </form>
          </div>

          <div class="logone" id="02" style="display:none;">
            <form action="<?php echo site_url('social/bangding/'.$vendor);?>" method="post">
            <h2 class="mbm">你好  <?php echo $screen_name;?> ，欢迎来到爱厨房！</h2>
              <div class="itm clearfix">
                <label>邮箱</label>
                <div class="iput">
                  <input id="bd_email" name="bd_email" value="" class="retext" type="text">
                </div>
                <span> </span>
              </div>
              <div class="iisi"></div>
              <div class="itm clearfix">
                <label>密码</label>
                <div class="iput">
                 <input id="bd_passwd" name="bd_passwd" value="" class="retext" maxlength="20" type="password">
                </div>
                <span></span>
              </div>
              <div class="iisi">密码长度为6-20位，不能含有空格</div>

              <div class="iloo">
                <span class="lxieyi mb30"> 
                  <label><input type="checkbox" checked="checked" class="czl" name="is_remember" id="is_remember"> 我已阅读并且同意</label> <a href="<?=site_url('siteinfo/?menu=protocol')?>" target="_blank" title="用户协议">爱厨房使用协议</a> 
                  <b id="agreement_tip" class="fwn ff0 pls"><?=$error_info?></b>
                </span>
                <button type="submit" class="btnrdz">绑定</button>
                <span class="plm"><a href="javascript:void(0);" onclick="$('#02').fadeOut(800,function(){$('#01').fadeIn(800)});">没有账号</a></span>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
</div>
<? $this->load->view('footer'); ?>